{% extends "administrative/base.html" %}

{% block page_link %}
{#    <script src="../../static/administrative/js/examine.js"></script>#}
    <link rel="stylesheet" href="../../static/administrative/css/style.css">
{% endblock %}


{% block style %}
    <style>
        .add_class{
            background: #1E90FF;
        }
        .file {
            position: relative;
            display: inline-block;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }
        .file input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
        }
        .file:hover {
            background: #AADFFD;
            border-color: #78C3F3;
            color: #004974;
            text-decoration: none;
        }
        tr{
            height: 35px;
        }
        th{
            text-align: center;
        }
        table {
            table-layout: fixed;
        }
        #Table td{
            text-align: center;
            border-bottom: #F2F2F2 solid 1px;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            -o-text-overflow:ellipsis;
        }
        #Table1 td{
            text-align: center;
            border-bottom: #F2F2F2 solid 1px;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            -o-text-overflow:ellipsis;
        }
        #Table2 td{
            text-align: center;
            border-bottom: #F2F2F2 solid 1px;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            -o-text-overflow:ellipsis;
        }
        #Table3 td{
            text-align: center;
            border-bottom: #F2F2F2 solid 1px;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            -o-text-overflow:ellipsis;
        }
        #t_table4 td{
            {#text-align: center;#}
            color: #0b0b0b;
            cursor: pointer;
            border-bottom: #F2F2F2 solid 1px;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            -o-text-overflow:ellipsis;
        }
        #Table tr:hover{
            background: #D8D8D8;
            color: white;
        }
        #Table1 tr:hover{
            background: #D8D8D8;
            color: white;
        }
        #Table2 tr:hover{
            background: #D8D8D8;
            color: white;
        }
        #Table3 tr:hover{
            background: #D8D8D8;
            color: white;
        }
        #t_table4 tr:hover{
            background: #D8D8D8;
            color: white;
        }
        td:first-child, th:first-child {
            position:sticky;
            left:0; /* 首行永远固定在左侧 */
            z-index:1;
        }
        thead tr th {
            position:sticky;
            top:0; /* 列首永远固定在头部  */
            background-color: #E8E8E8;
        }
        th:first-child{
            z-index:2;
        }
        .li-class{
            list-style: none;
            margin-top: 2%;
            color: #0b0b0b;
            cursor: pointer;
        }
        .preserve{
            height: 30px;width: 90%;background: #0070c1;color: #ffffff;border-radius: 3px
        }
        .top_tag{
            border-bottom: #01AAED solid 2px;
            color: #01AAED;
        }
        .tab_top {
            width: 100px;height: 40px;line-height: 40px;text-align: center;display: inline-block;cursor: pointer;
        }
        textarea:focus {
            outline: none !important;
            border-color: #719ECE;
        }
        .shadow_tab{
            box-shadow: #01AAED 0 0 10px;
        }
        .shadow_tab_1{
            width: 20%;height: 80px;border: #cfcfcf solid 1px;margin: 1%;display: inline-block;vertical-align: top;cursor: pointer;
        }
    </style>
{% endblock %}



{% block right_content %}
    <div class="right-box" style="width: 100%;height: 87%;padding-bottom: 1%;">
        <div style="width: 100%;height: 40px;background: white;border-bottom: #A9A9A9 solid 0.5px;">
            <div id="accraditation_detail_tab" onclick="change_mind('accraditation_detail')" style="margin-left: 1%;" class="tab_top top_tag">
                审批详情
            </div>
            <div id="attention_details_tab" onclick="change_mind('attention_details')" class="tab_top">
                收阅详情
            </div>
            <div id="Application_details_tab" onclick="change_mind('Application_details')" class="tab_top">
                发文单
            </div>
            <div id="mind_file_tab" onclick="change_mind('mind_file')" class="tab_top">
                公文正文
            </div>
        </div>
        <div style="width: 80%;height: 100%;margin-top: 1%;margin-left: 1%;display: inline-block;">
            <div style="width: 99%;background: white;height: 106%;">
                <div id="accraditation_detail" style="width: 100%;height: 100%;">
                    <div style="width: 100%;height: 90%;overflow: auto;">
                        <table style="width: 90%;margin-left: 5%;">
                            <tr>
                                <td style="text-align: center;height: 60px;line-height: 60px;width: 100%;"><h3 id="paper_title" style="font-family: 'Songti TC'"></h3></td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="width: 9%;border: #0b0b0b solid 1px;text-align: center;">
                                    标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题
                                </td>

                                <td style="width: 29%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;">
                                    <div id="BIAOTI"></div>
                                </td>

                                <td style="width: 9%;border: #0b0b0b solid 1px;border-left: none;text-align: center;">
                                    文&nbsp;&nbsp;&nbsp;&nbsp;号
                                </td>

                                <td style="width: 22%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;">
                                    <div id="WENHAO"></div>
                                </td>

                                <td style="width: 9%;border: #0b0b0b solid 1px;border-left: none;text-align: center;">
                                    印份
                                </td>

                                <td style="width: 22%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;">
                                    <div id="YINFEN"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 50px;border: #0b0b0b solid 1px;border-top: none;margin: 0;width: 9%;text-align: center;">
                                    拟稿部门
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 29%;">
                                    <div id="NIGAO" style="width: 100%;height: 60px;margin-top: 3%;line-height: 60px;"></div>
                                </td>
                                <td style="border: #0b0b0b solid 1px;border-top: none;margin: 0;width: 9%;text-align: center;">
                                    拟稿人
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 53%;">
                                    <div style="width: 100%;height: 30px;margin-top: 3%;line-height: 30px;padding-left: 2%;">
                                        <div id="NIGAOREN" style="width: 100%;"></div>
                                    </div>
                                    <p style="text-align: right;height: 30px;padding-right: 2%;">
                                        <input id="NIAN" type="text" style="width: 50px;border: none;text-align: center;">年
                                        <input id="YUE" type="text" style="width: 30px;border: none;text-align: center;">月
                                        <input id="RI" type="text" style="border: none;width: 30px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="border: #0b0b0b solid 1px;border-top: none;margin: 0;width: 9%;text-align: center;">
                                    核稿人
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 91%;height: 100px;">
                                    <div id="发文核稿" style="width: 100%;height: 40px;margin-top: 1%;visibility: hidden;display: inline-block;padding-right: 1%;">
                                        <div>
                                            <input type="radio" name="nuclear_draft" value="同意"> 同意
                                            <input type="radio" name="nuclear_draft" value="不同意" style="margin-left: 3%;"> 不同意
                                        </div>
                                        <textarea name="" id="HG_option" rows="3" style="width: 100%;margin-top: 1%;border:0;border-radius:5px;background-color:rgba(241,241,241,.98);padding: 10px;resize: none;"></textarea>
                                    </div>
                                    <div id="signature_Hegao"></div>
                                </td>
                            </tr>
                            <tr>
                                <td style="border: #0b0b0b solid 1px;border-top: none;margin: 0;width: 9%;text-align: center;">
                                    分管领导
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 91%;height: 100px;">
                                    <div id="分管领导" style="width: 100%;height: 40px;margin-top: 1%;visibility: hidden;display: inline-block;padding-right: 1%;">
                                        <div>
                                            <input type="radio" name="the_leader" value="同意"> 同意
                                            <input type="radio" name="the_leader" value="不同意" style="margin-left: 3%;"> 不同意
                                        </div>
                                        <textarea name="" id="FG_option" rows="3" style="width: 100%;margin-top: 1%;border:0;border-radius:5px;background-color:rgba(241,241,241,.98);padding: 10px;resize: none;"></textarea>
                                    </div>
                                    <div id="signature_Fenguan"></div>
                                </td>
                            </tr>
                            <tr id="huiqian_tr">
                                <td style="border: #0b0b0b solid 1px;border-top: none;margin: 0;width: 9%;text-align: center;">
                                    会签
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 91%;height: 100px;">
                                    <div id="发文会签" style="width: 100%;height: 40px;margin-top: 1%;visibility: hidden;display: inline-block;padding-right: 1%;">
                                        <div>
                                            <input type="radio" name="countersign" value="同意"> 同意
                                            <input type="radio" name="countersign" value="不同意" style="margin-left: 3%;"> 不同意
                                        </div>
                                        <textarea name="" id="HQ_option" rows="3" style="width: 100%;margin-top: 1%;border:0;border-radius:5px;background-color:rgba(241,241,241,.98);padding: 10px;resize: none;"></textarea>
                                    </div>
                                    <div id="signature_Huiqian"></div>
                                </td>
                            </tr>
                            <tr>
                                <td style="border: #0b0b0b solid 1px;border-top: none;margin: 0;width: 9%;text-align: center;">
                                    签发
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 91%;height: 100px;">
                                    <div id="发文签发" style="width: 100%;height: 40px;margin-top: 1%;visibility: hidden;display: inline-block;padding-right: 1%;">
                                        <div>
                                            <input type="radio" name="Issued_by_post" value="同意"> 同意
                                            <input type="radio" name="Issued_by_post" value="不同意" style="margin-left: 3%;"> 不同意
                                        </div>
                                        <textarea name="" id="QF_option" rows="3" style="width: 100%;margin-top: 1%;border:0;border-radius:5px;background-color:rgba(241,241,241,.98);padding: 10px;resize: none;"></textarea>
                                    </div>
                                    <div id="signature_Qianfa"></div>
                                </td>
                            </tr>
                        </table>
                        <div style="width: 100%;height: 50px;"></div>
                    </div>

                    <iframe id="iframe1" style="display: none"></iframe>
                    <div style="width: 100%;height: 60px;text-align: center;border-top: #cfcfcf solid 1px;">
                        <button id="print" style="border-radius: 3px;border: #cfcfcf solid 0.5px;background: #efefef;width: 100px;margin-top: 20px;">打印</button>
                        <button onclick="accraditation()" id="present" style="border-radius: 3px;border: #cfcfcf solid 0.5px;background: #efefef;width: 100px;margin-top: 20px;display: none;">提交</button>
                    </div>
                </div>

                <div id="Application_details" style="width: 100%;display: none;height: 100%;overflow: auto;">
                    <div id="manuscript_paper_1" style="width: 100%;height: 95%;"><!--startprint-->
                        <table style="width: 100%;">
                            <tr>
                                <td style="text-align: center;height: 60px;line-height: 60px;width: 100%;"><h3 style="font-family: 'Songti TC'">京&nbsp;山&nbsp;市&nbsp;人&nbsp;民&nbsp;医&nbsp;院&nbsp;发&nbsp;文&nbsp;稿&nbsp;纸</h3></td>
                            </tr>
                        </table>
                        <div style="padding-left: 1%;padding-right: 1%;width: 100%;color: #0b0b0b;">
                            <table style="width: 90%;margin-left: 5%;">
                                <tr style="width: 100%;">
                                    <td style="height: 100px;width: 50%;border-top: black solid 2px;border-right: black solid 1px;padding-left: 10px;">
                                        <p>签&nbsp;&nbsp;&nbsp;&nbsp;发:</p>
                                        <div id="signature_issuer"></div>
                                    </td>
                                    <td style="height: 100px;width: 50%;border-top: black solid 2px;padding-left: 10px;">
                                        <p>分管领导意见:</p>
                                        <div id="signature_of_leaders"></div>
                                    </td>
                                </tr>
                                <tr style="width: 100%;">
                                    <td style="height: 100px;width: 50%;border-top: black solid 1px;border-right: black solid 1px;padding-left: 10px;">
                                        <p>会核意见:</p>
                                    </td>
                                    <td style="height: 100px;width: 50%;border-top: black solid 1px;margin: 0;padding: 0;">
                                        <div style="margin-left: 10px;">
                                            <p>审稿人:</p>
                                            <div id="signature_Reviewer"></div>
                                        </div>

                                        <div style="width: 100%;border-top: black solid 1px;"></div>

                                        <div style="margin-left: 10px;margin-top: 5px;">
                                            <p>拟稿单位及拟稿人:</p>
                                            <div style="width: 100%;height: 40px;margin-top: 3%;">
                                                <span id="is_department"></span>
                                                <span id="drafter" style="margin-left: 5%;"></span>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>

                            <table style="width: 90%;margin-left: 5%;">
                                <tr style="width: 100%;">
                                    <td style="height: 100px;border-top: black solid 1px;padding-left: 10px;border-bottom: black solid 1px;">
                                        <p>会&nbsp;&nbsp;&nbsp;&nbsp;签:</p>
                                        <div id="signature_Countersigned"></div>
                                    </td>
                                </tr>

                                <tr>
                                    <td style="height: 100px;border-top: black solid 1px;padding-left: 10px;border-bottom: black solid 1px;">
                                        <p>抄送机关:</p>
                                        <div id="cc_unit" style="width: 100%;height: 50px;padding-left: 1%;"></div>
                                    </td>
                                </tr>
                            </table>

                            <table style="width: 90%;margin-left: 5%;">
                                <tr>
                                    <td id="post_number" style="width: 10%;padding-left: 10px;border-bottom: black solid 1px;border-right: black solid 1px;height: 40px;">
                                    </td>

                                    <td style="width: 10%;padding-left: 10px;border-bottom: black solid 1px;height: 40px;">
                                        印发份数:<div id="printed_copies" style="display: inline-block;border: none;padding-left: 1%;"></div>
                                    </td>
                                </tr>
                            </table>

                            <table style="width: 90%;margin-left: 5%;">
                                <tr>
                                    <td style="height: 100px;padding-left: 10px;border-bottom: black solid 1px;">
                                        <p>标&nbsp;&nbsp;&nbsp;&nbsp;题:</p>
                                        <div id="title" style="width: 100%;height: 50px;padding-left: 1%;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <!--endprint-->
                    </div>

                    <div id="manuscript_paper_2" style="width: 100%;display: none;"><!--startprint-->
                        <table style="width: 90%;margin-left: 5%;">
                            <tr>
                                <td style="text-align: center;height: 60px;line-height: 60px;width: 100%;"><h3
                                        style="font-family: 'Songti TC'">京&nbsp;山&nbsp;市&nbsp;人&nbsp;民&nbsp;医&nbsp;院&nbsp;文&nbsp;稿&nbsp;纸</h3>
                                </td>
                            </tr>
                        </table>
                        <table style="width: 90%;margin-left: 5%;">
                            <hr style="border: 1px solid #0b0b0b;width: 90%;margin-left: 5%;">
                        </table>

                        <div style="border-top: #0b0b0b solid 0.5px;width: 90%;margin-top: 2px;margin-left: 5%;"></div>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 100%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">事由：</p>
                                    <div id="title_1" style="width: 100%;border: none;height: 90px;line-height: 90px;"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 100%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p>
                                        <label>主送机关：</label>
                                        <input id="lord_send_unit_1" type="text" style="width: 50%;border: none;color: black;">
                                    </p>
                                    <p style="margin-top: 30px">
                                        <label>抄送机关：</label>
                                        <input id="cc_unit_1" type="text" style="width: 50%;border: none;">
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="vertical-align: top;">签发：</p>
                                    <div id="signature_issuer_2_1"></div>
                                </td>

                                <td style="height: 100px;width: 15%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="vertical-align: top;">分管领导：</p>
                                    <div id="signature_issuer_2_2"></div>
                                </td>

                                <td style="height: 100px;width: 15%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="vertical-align: top;">会核：</p>
                                    <div id="signature_issuer_2_3"></div>
                                </td>

                                <td style="height: 100px;width: 15%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="vertical-align: top;">拟稿：</p>
                                    <div style="width: 100%;height: 40px;margin-top: 3%;line-height: 40px;">
                                        <input id="drafter_1" style="border: none;">
                                    </div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="width: 60%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;height: 40px;">
                                    <label>文号：</label>
                                    <input id="post_number_2" type="text" style="width: 60%;border: none;">
                                </td>

                                <td style="width: 35%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;height: 40px;">
                                    <label>附件：</label>
                                    <input id="accessory_2" type="text" style="width: 50%;border: none;">
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;vertical-align: center;">
                                    <span>共 印</span><input id="printed_copies_1" type="text"
                                                          style="text-align: center;border: none;width: 5%;"><span>份</span>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 2px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                        </table>
                        <!--endprint-->
                    </div>

                    <div id="manuscript_paper_3" style="width: 100%;display: none;"><!--startprint-->
                        <table style="width: 90%;margin-left: 5%;">
                            <tr>
                                <td style="text-align: center;height: 60px;line-height: 60px;width: 100%;"><h3 style="font-family: 'Songti TC'">中共京山市人民医院委员会文件拟稿纸</h3></td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-top: #0b0b0b solid 1px;border-right: #0b0b0b solid 1px;height: 40px;">
                                    <label>文号：</label>
                                    <div id="wenhao_3" style="display: inline-block;"></div>
                                </td>

                                <td style="width: 10%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-top: #0b0b0b solid 1px;border-right: #0b0b0b solid 1px;text-align: center;">
                                    <label>密级</label>
                                </td>

                                <td style="width: 10%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-top: #0b0b0b solid 1px;border-right: #0b0b0b solid 1px;">
                                    <div id="accuracy_class_1" style="display: inline-block;"></div>
                                </td>

                                <td style="width: 20%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-top: #0b0b0b solid 1px;">
                                    <label>印份</label>
                                    <div id="printed_copies_2" style="display: inline-block;width: 80px;text-align: center;"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 100%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">事由：</p>
                                    <div id="title_2" style="width: 100%;border: none;height: 90px"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 60%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <div>
                                        <label>主送：</label>
                                        <div id="lord_send_unit_2" style="display: inline-block;"></div>
                                    </div>
                                    <hr style="margin-left: -1%;border-top: 1px solid #0b0b0b;">
                                    <div>
                                        <label>抄报（抄送）：</label>
                                        <div id="cc_unit_2" style="display: inline-block;"></div>
                                    </div>
                                </td>

                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">附件：</p>
                                    <div id="accessory_1" style="width: 100%;border: none;height: 60px"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="margin: 0;">拟稿单位：</p>
                                    <div id="is_department_2" style="height: 80px;line-height: 80px;"></div>
                                </td>

                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="margin: 0;">拟稿人：</p>
                                    <div id="drafter_2" style="height: 40px;line-height: 40px;"></div>
                                    <p style="width: 100%;text-align: right;height: 40px;padding-right: 2%;">
                                        <input id="year-1" type="text" style="border: none;width: 50px;text-align: center;">年<input id="month-1" type="text" style="border: none;width: 50px;text-align: center;">月<input id="day-1" type="text" style="text-align: center;border: none;width: 50px;">日
                                    </p>
                                </td>

                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">核稿人：</p>
                                    <div id="signature_issuer_3_1"></div>
                                    <p style="width: 100%;text-align: right;height: 40px;padding-right: 2%;">
                                        <input id="year-2" type="text" style="width: 50px;border: none;text-align: center;">年<input id="month-2" type="text" style="width: 50px;border: none;text-align: center;">月<input id="day-2" type="text" style="border: none;width: 50px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 50%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <label>分管领导意见：</label>
                                    <div id="signature_issuer_3_2"></div>
                                    <p style="width: 100%;text-align: right;height: 20px;padding-right: 2%;">
                                        <input id="year-3" type="text" style="width: 50px;border: none;text-align: center;">年<input id="month-3" type="text" style="width: 50px;border: none;text-align: center;">月<input id="day-3" type="text" style="border: none;width: 50px;text-align: center;">日
                                    </p>
                                </td>

                                <td style="height: 100px;width: 50%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">会签：</p>
                                    <div id="signature_issuer_3_3"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 15px;width: 100%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">领导签发：</p>
                                    <div id="signature_issuer_3_4"></div>
                                    <p style="width: 100%;text-align: right;height: 30px;padding-right: 2%;">
                                        <input id="year-4" type="text" style="width: 50px;border: none;text-align: center;">年<input id="month-4" type="text" style="width: 50px;border: none;text-align: center;">月<input id="day-4" type="text" style="border: none;width: 50px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 2px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                        </table>
                    <!--endprint-->
                    </div>

                    <div id="manuscript_paper_4" style="width: 100%;display: none;"><!--startprint-->
                        <table style="width: 90%;margin-left: 5%;">
                            <tr>
                                <td style="text-align: center;height: 60px;line-height: 60px;width: 100%;"><h3
                                        style="font-family: 'Songti TC'">华中科技大学协和京山医院文件拟稿纸</h3></td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="width: 25%;border: #0b0b0b solid 1px;padding-left: 1%;text-align: right;padding-right: 2%;">
                                    <div id="wenhao-4"></div>
                                </td>

                                <td style="width: 10%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;text-align: center;">
                                    密级
                                </td>

                                <td style="width: 15%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;">
                                    <div id="accuracy_class_4" style="width: 100%;border: none;"></div>
                                </td>

                                <td style="width: 10%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;text-align: center;">
                                    紧急
                                </td>

                                <td style="width: 15%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;">
                                    <div id="urgency_degree" type="text" style="width: 100%;border: none;"></div>
                                </td>

                                <td style="width: 10%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;text-align: center;">
                                    印份
                                </td>

                                <td style="width: 15%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;">
                                    <div id="printed_copies_4" type="text" style="width: 100%;border: none;"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 100%;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;">
                                    <div>
                                        <label>标&nbsp;&nbsp;&nbsp;&nbsp;题：</label>
                                        <div id="title_4" type="text" style="width: 80%;border: none;display: inline-block;"></div>
                                    </div>
                                    <div style="margin-top: 30px">
                                        <label>主题词：</label>
                                        <div id="subject_term_id" type="text" style="width: 80%;border: none;display: inline-block;"></div>
                                    </div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 50%;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;">
                                    <div>
                                        <label>主 送：</label>
                                        <div id="lord_send_unit_4" style="width: 80%;border: none;display: inline-block;"></div>
                                    </div>
                                    <hr style="margin-left: -1%;border-top: 1px solid #0b0b0b;">
                                    <div>
                                        <label>抄 送：</label>
                                        <div id="cc_unit_4" style="width: 75%;border: none;display: inline-block;"></div>
                                    </div>
                                </td>

                                <td style="height: 100px;width: 50%;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;border-left: none;">
                                    <p style="margin: 0;">附 件：</p>
                                    <div id="accessory_4" style="width: 100%;border: none;height: 90px;"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 50px;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 15%;">
                                    拟稿单位：
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 35%;">
                                    <div id="is_department_4" style="width: 100%;height: 60px;margin-top: 3%;line-height: 60px;text-align: center"></div>
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 15%;">
                                    拟稿人：
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 35%;">
                                    <div style="width: 100%;height: 30px;margin-top: 3%;line-height: 30px;text-align: center">
                                        <div id="drafter_4" style="width: 100%;"></div>
                                    </div>
                                    <p style="text-align: right;height: 30px;padding-right: 2%;">
                                        <input id="year-4-1" type="text" style="width: 50px;border: none;text-align: center;">年
                                        <input id="month-4-1" type="text" style="width: 30px;border: none;text-align: center;">月
                                        <input id="day-4-1" type="text" style="border: none;width: 30px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 15%;">
                                    <p style="margin: 0;">核&nbsp;&nbsp;稿&nbsp;&nbsp;人：</p>
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;border-left: none;width: 85%;">
                                    <div id="signature_issuer_4_1"></div>
                                    <p style="text-align: right;height: 30px;padding-right: 1%;width: 100%;">
                                        <input id="year-4-2" type="text" style="width: 50px;border: none;text-align: center;">年
                                        <input id="month-4-2" type="text" style="width: 30px;border: none;text-align: center;">月
                                        <input id="day-4-2" type="text" style="border: none;width: 30px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 100px;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;width: 15%;">
                                    <label>分管领导：</label>
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;border-left: none;width: 85%;">
                                    <div id="signature_issuer_4_2"></div>
                                    <p style="text-align: right;height: 30px;padding-right: 1%;width: 100%;">
                                        <input id="year-4-3" type="text" style="width: 50px;border: none;text-align: center;">年
                                        <input id="month-4-3" type="text" style="width: 30px;border: none;text-align: center;">月
                                        <input id="day-4-3" type="text" style="border: none;width: 30px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 100px;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;width: 15%;">
                                    <p style="margin: 0;">会&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;签：</p>
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 3%;border-top: none;margin: 0;border-left: none;width: 85%;">
                                    <div id="signature_issuer_4_3"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 300px;width: 100%;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;">
                                    <label>领导签发：</label>
                                    <div id="signature_issuer_4_4" style="height: 180px;display: none;"></div>
                                </td>
                            </tr>
                        </table>

                    <!--endprint-->
                    </div>

                </div>

                <div id="attention_details" style="width: 100%;height: 100%;display: none;">
                    <div style="width: 100%;height: 15%">
                        <div id="tab_4" class="shadow_tab shadow_tab_1" onclick="Change_tab(4)">
                            <div style="width: 80px;padding-left: 10%;display: inline-block;vertical-align: top;margin-top: 15px;">
                                <img src="../../static/administrative/img/流程审批.png" alt="" style="width: 50px;height: 50px;">
                            </div>
                            <div style="padding-left: 2%;display: inline-block;margin-top: 15px;vertical-align: top;">
                                <div style="height: 25px;">
                                    <h5 style="color: #01AAED;">{{ approve_people_num }} 人</h5>
                                </div>
                                <div style="height: 25px;">审批详情</div>
                            </div>
                        </div>

                        <div id="tab_1" class="shadow_tab_1" onclick="Change_tab(1)">
                            <div style="width: 80px;padding-left: 10%;display: inline-block;vertical-align: top;margin-top: 15px;">
                                <img src="../../static/administrative/img/1人员管理.png" alt="" style="width: 50px;height: 50px;">
                            </div>
                            <div style="padding-left: 2%;display: inline-block;margin-top: 15px;vertical-align: top;">
                                <div style="height: 25px;">
                                    <h5 style="color: #01AAED;">{{ total_num }} 人</h5>
                                </div>
                                <div style="height: 25px;">收阅人次</div>
                            </div>
                        </div>

                        <div id="tab_2" class="shadow_tab_1" onclick="Change_tab(2)">
                            <div style="width: 80px;padding-left: 10%;display: inline-block;vertical-align: top;margin-top: 15px;">
                                <img src="../../static/administrative/img/查看.png" alt="" style="width: 50px;height: 50px;">
                            </div>
                            <div style="padding-left: 2%;display: inline-block;margin-top: 15px;vertical-align: top;">
                                <div style="height: 25px;">
                                    <h5 style="color: #00b7ee;">{{ already_received }} 人</h5>
                                </div>
                                <div style="height: 25px;">已查看</div>
                            </div>
                        </div>

                        <div id="tab_3" class="shadow_tab_1" onclick="Change_tab(3)">
                            <div style="width: 80px;padding-left: 10%;display: inline-block;vertical-align: top;margin-top: 15px;">
                                <img src="../../static/administrative/img/未查看.png" alt="" style="width: 50px;height: 50px;">
                            </div>
                            <div style="padding-left: 2%;display: inline-block;margin-top: 15px;vertical-align: top;">
                                <div style="height: 25px;">
                                    <h5 style="color: #e02107;">{{ Did_not_receive }} 人</h5>
                                </div>
                                <div style="height: 25px;">未查看</div>
                            </div>
                        </div>
                    </div>

                    <div style="width: 100%;height: 80%;margin-top: 2%;">
                        <div id="tab_four" style="width: 100%;height: 100%;overflow: auto;">
                            <table style="border-collapse: collapse;width: 100%;table-layout: fixed;">
                                <thead>
                                    <tr>
                                        <th style="width: 10%;">节点</th>
                                        <th style="width: 10%;">审批人</th>
                                        <th style="width: 20%;">审批结果</th>
                                        <th style="width: 20%;">审批意见</th>
{#                                        <th style="width: 20%;">来办时间</th>#}
                                        <th style="width: 20%;">审批时间</th>
{#                                        <th style="width: 20%;">用时</th>#}
                                        <th style="width: 20%;">签名</th>
                                    </tr>
                                </thead>
                                <tbody style="overflow: auto;" id="Table">
                                    {% for Node in Node_list %}
                                        <tr>
                                            <td>{{ Node.type }}</td>
                                            <td>{{ Node.name }}</td>
                                            <td>{{ Node.status }}</td>
                                            <td style="text-align: left;" title="{{ Node.opinion }}">{{ Node.opinion }}</td>
{#                                            <td>{{ Node.approveTime }}</td>#}
                                            <td>{{ Node.approveTime }}</td>
                                            <td>
                                                {% autoescape off %}
                                                    {{ Node.signature_picture }}
                                                {% endautoescape %}
                                            </td>
                                        </tr>
                                    {% endfor %}
                                </tbody>
                            </table>
                        </div>
                        <div id="tab_one" style="width: 100%;height: 100%;display: none;overflow: auto;">
                            <table style="border-collapse: collapse;width: 100%;table-layout: fixed;">
                                <thead>
                                    <tr>
                                        <th style="width: 25%;">接收人</th>
                                        <th style="width: 25%;">状态</th>
                                        <th style="width: 25%;">收阅时间</th>
                                        <th style="width: 25%;">签名</th>
                                    </tr>
                                </thead>
                                <tbody style="overflow: auto;" id="Table1">
                                    {% for recipient_total in recipient_total_list %}
                                        <tr>
                                            <td style="width: 25%;" title="{{ recipient_total.name }}">{{ recipient_total.name }}</td>
                                            <td style="width: 25%;" title="{{ recipient_total.status }}">{{ recipient_total.status }}</td>
                                            <td style="width: 25%;" title="{{ recipient_total.attention_time }}">{{ recipient_total.attention_time }}</td>
                                            <td style="width: 25%;">
                                                {% autoescape off %}
                                                    {{ recipient_total.signature }}
                                                {% endautoescape %}
                                            </td>
                                        </tr>
                                    {% endfor %}
                                </tbody>
                            </table>
                        </div>
                        <div id="tab_two" style="width: 100%;height: 100%;display: none;overflow: auto;">
                            <table style="border-collapse: collapse;width: 100%;table-layout: fixed;">
                                <thead>
                                    <tr>
                                        <th style="width: 25%;">接收人</th>
                                        <th style="width: 25%;">状态</th>
                                        <th style="width: 25%;">收阅时间</th>
                                        <th style="width: 25%;">签名</th>
                                    </tr>
                                </thead>
                                <tbody style="overflow: auto;" id="Table2">
                                    {% for Did_receive in Did_receive_list %}
                                        <tr>
                                            <td style="width: 25%;" title="{{ Did_receive.name }}">{{ Did_receive.name }}</td>
                                            <td style="width: 25%;" title="{{ Did_receive.status }}">{{ Did_receive.status }}</td>
                                            <td style="width: 25%;" title="{{ Did_receive.attention_time }}">{{ Did_receive.attention_time }}</td>
                                            <td style="width: 25%;">
                                                {% autoescape off %}
                                                    {{ Did_receive.signature }}
                                                {% endautoescape %}
                                            </td>
                                        </tr>
                                    {% endfor %}
                                </tbody>
                            </table>
                        </div>
                        <div id="tab_three" style="width: 100%;height: 100%;display: none;overflow: auto;">
                            <table style="border-collapse: collapse;width: 100%;table-layout: fixed;">
                                <thead>
                                    <tr>
                                        <th style="width: 25%;">接收人</th>
                                        <th style="width: 25%;">状态</th>
                                        <th style="width: 25%;">收阅时间</th>
                                        <th style="width: 25%;">签名</th>
                                    </tr>
                                </thead>
                                <tbody style="overflow: auto;" id="Table3">
                                    {% for Recipient in recipient_list %}
                                        <tr>
                                            <td style="width: 25%;" title="{{ Recipient.name }}">{{ Recipient.name }}</td>
                                            <td style="width: 25%;" title="{{ Recipient.status }}">{{ Recipient.status }}</td>
                                            <td style="width: 25%;" title="{{ Recipient.attention_time }}">{{ Recipient.attention_time }}</td>
                                            <td style="width: 25%;">
                                                {% autoescape off %}
                                                    {{ Recipient.signature }}
                                                {% endautoescape %}
                                            </td>
                                        </tr>
                                    {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <div id="mind_file" style="width: 100%;height: 100%;display: none;">
                    <div style="width: 100%;height: 13%;overflow: auto;">
                        <table style="border-collapse: collapse;width: 100%;table-layout: fixed;">
                            <thead>
                                <tr>
                                    <th style="width: 65%;">文件名</th>
                                    <th style="width: 15%;">文件类型</th>
                                    <th style="width: 15%;">操作</th>
                                </tr>
                            </thead>

                            <tbody style="overflow: auto;" id="t_table4">
                                {% for document_obj in examine_dict.document_list %}
                                    <tr>
                                        <td style="padding-left: 1%;">{{ document_obj.file_name }}</td>
                                        <td style="text-align: center;">{{ document_obj.file_type }}</td>
                                        <td style="text-align: center;color: #0c6fd9;" onclick="change_iframe('{{ document_obj.file_url }}')">查看</td>
                                    </tr>
                                {% endfor %}

                            </tbody>
                        </table>
                    </div>
                    <iframe id="view_iframe" src="{{ examine_dict.main_body.href }}" width="100%" height="84%" style="margin-top: 1%;">
                    </iframe>
                </div>

                <div style="height: 30px;"></div>
            </div>

        </div>

        <!-- 流程图 -->
        <div style="width: 17%;height: 106%;margin-left: 1%;display: inline-block;vertical-align: top;margin-top: 1%;background: white;padding: 2%;overflow: auto;">
            <div style="width: 100%;text-align: center;"><button style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 50%;height: 40px;color: green;"><i class="iconfont icon-kaishi"></i>开始</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">发文拟稿</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button id="FW-hegao" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">发文核稿</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button id="FG_leader" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">分管领导</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;" id="huiqian_arrows">&#8595;</div>
            <div style="width: 100%;text-align: center;" id="huiqian"><button id="QF_countersign" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">发文会签</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button id="FW_issue" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">发文签发</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button id="FF_chromatography" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">套红分发</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 50%;height: 40px;color: green;"><i class="iconfont icon-jieshu"></i>结束</button></div>
        </div>

        <div class="modal fade bd-example-modal-xl" tabindex="-1" role="dialog"   aria-hidden="true">
            <div class="modal-dialog modal-xl" style="margin-top: 3%;">
                <div class="modal-content"  style="height: 600px;border-radius: 7px;width: 900px;margin-left: 15%;background: #F8F8FF;">
                    <div class="modal-header" style="height: 50px;">
                        <h5 class="modal-title" style="line-height: 50px;width: 10%;">选择执行人</h5>
                        <button id="close-model" type="button" class="close" data-dismiss="modal" aria-label="Close"  style="margin-right: 3%;line-height: 50px;">
                            <span aria-hidden="true" style="font-size: 28px;">&times;</span>
                        </button>
                    </div>
                    <div class="modal-body" style="height: 200px;padding: 1%;">
                        <div style="display: inline-block;width: 30%;height: 70%;border-right: #E8E8E8 solid 1px;">
                            <div style="width: 100%;height: 35px;line-height: 35px;background: #98A6AD;padding-left: 2%;color: #0b0b0b">
                                选择部门
                            </div>
                            <div id="department_list" style="width: 100%;height: 95%;overflow: auto;">

                            </div>
                        </div>

                        <div style="display: inline-block;width: 69%;height: 70%;overflow: auto;vertical-align: top;left: 0;">
                            <table class="table table-hover table-bordered" style="border-collapse: collapse;">
                                <thead>
                                    <tr>
                                        <th scope="col" style="width: 1%;">

                                        </th>
                                        <th scope="col" style="width: 2%;">序号</th>
                                        <th scope="col" style="width: 8%;">姓名</th>
                                    </tr>
                                </thead>
                                <tbody style="overflow: auto;" id="t_table2"></tbody>
                            </table>
                            <div id="img-display1" style="width: 75%;text-align: center;">
                                <div style="margin-top: 10%;">
                                    <img src="../../static/public_file/images/page-img/11.jpg" alt="">
                                    <p style="margin: 0;padding: 0;vertical-align: top;">暂无数据</p>
                                </div>
                            </div>
                        </div>

                        <div style="height: 30%;width: 100%;border-top: #E8E8E8 solid 1px;overflow: auto;">
                            <div id="checked-label" style="margin-top: 1%;margin-left: 3%;">

                            </div>
                        </div>

                    </div>
                    <div class="modal-footer" style="height: 50px;">
                        <button id="model-affirm" type="button" class="btn btn-primary" style="margin-left: 2%;margin-right: 2%;" onclick="summit_val('executor')">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提&nbsp;交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</button>
                    </div>
                </div>
            </div>
        </div>

        <div class="modal fade bd-example-modal-xl1" tabindex="-1" role="dialog"   aria-hidden="true">
            <div class="modal-dialog modal-xl" style="margin-top: 3%;">
                <div class="modal-content"  style="height: 300px;border-radius: 7px;width: 900px;margin-left: 15%;background: #F8F8FF;">
                    <div class="modal-header" style="height: 50px;">
                        <h5 class="modal-title" style="line-height: 50px;width: 10%;">转办流程</h5>
                        <button id="close-model3" type="button" class="close" data-dismiss="modal" aria-label="Close"  style="margin-right: 3%;line-height: 50px;">
                            <span aria-hidden="true" style="font-size: 28px;">&times;</span>
                        </button>
                    </div>
                    <div class="modal-body" style="height: 100px;padding: 1%;">
                        <div style="width: 100%;">
                            <label for="">原办理人：</label>
                            <input type="text" style="width: 70%;border-radius: 7px;border: #dfdfdf solid 0.5px;padding-left: 1%;" placeholder="{{ realname }}" disabled>
                        </div>

                        <div style="width: 100%;margin-top: 2%;">
                            <label for="">转&nbsp;&nbsp;办&nbsp;&nbsp;人：</label>
                            <input id="Administrative_person" data-toggle="modal" data-target=".bd-example-modal-xl2" onclick="entrust1()" type="text" style="width: 70%;border-radius: 7px;border: #dfdfdf solid 0.5px;padding-left: 1%;">
                        </div>
                    </div>
                    <div class="modal-footer" style="height: 50px;">
                        <button id="model-affirm" type="button" class="btn btn-primary" style="margin-left: 2%;margin-right: 2%;" onclick="summit_val1()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提&nbsp;交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</button>
                    </div>
                </div>
            </div>
        </div>

        <div class="modal fade bd-example-modal-xl2" tabindex="-1" role="dialog"   aria-hidden="true">
            <div class="modal-dialog modal-xl" style="margin-top: 3%;">
                <div class="modal-content"  style="height: 600px;border-radius: 7px;width: 900px;margin-left: 15%;background: #F8F8FF;">
                    <div class="modal-header" style="height: 50px;">
                        <h5 class="modal-title" style="line-height: 50px;width: 10%;">选择执行人</h5>
                        <button id="close-model1" type="button" class="close" data-dismiss="modal" aria-label="Close"  style="margin-right: 3%;line-height: 50px;">
                            <span aria-hidden="true" style="font-size: 28px;">&times;</span>
                        </button>
                    </div>
                    <div class="modal-body" style="height: 200px;padding: 1%;">
                        <div style="display: inline-block;width: 30%;height: 70%;border-right: #E8E8E8 solid 1px;">
                            <div style="width: 100%;height: 35px;line-height: 35px;background: #98A6AD;padding-left: 2%;color: #0b0b0b">
                                选择部门
                            </div>
                            <div id="department_list1" style="width: 100%;height: 95%;overflow: auto;">

                            </div>
                        </div>

                        <div style="display: inline-block;width: 69%;height: 70%;overflow: auto;vertical-align: top;left: 0;">
                            <table class="table table-hover table-bordered" style="border-collapse: collapse;">
                                <thead>
                                    <tr>
                                        <th scope="col" style="width: 1%;">

                                        </th>
                                        <th scope="col" style="width: 2%;">序号</th>
                                        <th scope="col" style="width: 8%;">姓名</th>
                                    </tr>
                                </thead>
                                <tbody style="overflow: auto;" id="t_table3"></tbody>
                            </table>
                            <div id="img-display2" style="width: 75%;text-align: center;">
                                <div style="margin-top: 10%;">
                                    <img src="../../static/public_file/images/page-img/11.jpg" alt="">
                                    <p style="margin: 0;padding: 0;vertical-align: top;">暂无数据</p>
                                </div>
                            </div>
                        </div>

                        <div style="height: 30%;width: 100%;border-top: #E8E8E8 solid 1px;overflow: auto;">
                            <div id="checked-label1" style="margin-top: 1%;margin-left: 3%;">

                            </div>
                        </div>

                    </div>
                    <div class="modal-footer" style="height: 50px;">
                        <button id="model-affirm" type="button" class="btn btn-primary" style="margin-left: 2%;margin-right: 2%;" onclick="summit_val('Administrative_person')">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提&nbsp;交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</button>
                    </div>
                </div>
            </div>
        </div>

    </div>

    <button id="sour_del" style="display: none;" data-toggle="modal" data-target=".bd-example-modal-sm"></button>
    <!--确认删除？-->
    <div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-sm" style="margin-top: 10%;">
            <div class="modal-content" style="height: 150px;border-radius: 7px;width: 300px;background: #F8F8FF;border: #1E90FF solid 1px;">
                <div class="modal-header" style="height: 40px;background: #1E90FF;border-top-left-radius: 7px;border-top-right-radius: 7px;">
                    <h5 class="modal-title" style="line-height: 40px;width: 40%;text-align: center;color: #ffffff;">
                        提示对话框
                    </h5>
                    <button id="close-model2" type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-right: 3%;line-height: 40px;">
                        <span aria-hidden="true" style="font-size: 28px;color: white;">&times;</span>
                    </button>
                </div>
                <div class="modal-body" style="height: 50px;line-height: 60px;text-align: center;">
                    <p id="Confirm-content"></p>
                </div>
            </div>
        </div>
    </div>
{% endblock %}


{% block script %}
    <script>
        document.getElementById("administrative").className = "add-nav-active";
        document.getElementById("todo-document").className = "add_class";
        {#document.getElementById("organizational_management_ul").style.display = "inline-block";#}
        document.getElementById("jiantou").className = "iconfont icon-jiantou-xia";

        function change_iframe(file_url) {
            document.getElementById("view_iframe").setAttribute("src", file_url)
        }

        var examine_dict = {{ examine_dict | safe }};
        var current_node = "{{ examine_dict.current_node | safe }}";
        var task_executor = "{{ examine_dict.task_executor | safe }}";
        var realname = "{{ realname | safe }}";
        var have = "{{ have | safe }}";
        var monitoring = "{{ monitoring | safe }}";
        var post_single = {{ examine_dict.post_single | safe }};
        var approve = '{{ approve | safe }}';
        var achieve = '{{ achieve | safe }}';
        var post_single_status = '{{ post_single_status | safe }}';
        var reception = '{{ reception | safe }}';
        var draft = '{{ draft | safe }}'

        var signature_Countersigned_id = "signature_issuer_3_3";

         function Change_tab(change_number) {
             if (change_number === 1){
                 document.getElementById("tab_1").className = "shadow_tab shadow_tab_1";
                 document.getElementById("tab_2").className = "shadow_tab_1";
                 document.getElementById("tab_3").className = "shadow_tab_1";
                 document.getElementById("tab_one").style.display = "inline-block";
                 document.getElementById("tab_two").style.display = "none";
                 document.getElementById("tab_three").style.display = "none";
                 document.getElementById("tab_4").className = "shadow_tab_1";
                 document.getElementById("tab_four").style.display = "none";
             }else if (change_number === 2){
                 document.getElementById("tab_1").className = "shadow_tab_1";
                 document.getElementById("tab_2").className = "shadow_tab shadow_tab_1";
                 document.getElementById("tab_3").className = "shadow_tab_1";
                 document.getElementById("tab_two").style.display = "inline-block";
                 document.getElementById("tab_one").style.display = "none";
                 document.getElementById("tab_three").style.display = "none";
                 document.getElementById("tab_4").className = "shadow_tab_1";
                 document.getElementById("tab_four").style.display = "none";
             }else if (change_number === 3){
                 document.getElementById("tab_1").className = "shadow_tab_1";
                 document.getElementById("tab_2").className = "shadow_tab_1";
                 document.getElementById("tab_3").className = "shadow_tab shadow_tab_1";
                 document.getElementById("tab_three").style.display = "inline-block";
                 document.getElementById("tab_two").style.display = "none";
                 document.getElementById("tab_one").style.display = "none";
                 document.getElementById("tab_4").className = "shadow_tab_1";
                 document.getElementById("tab_four").style.display = "none";
             }else {
                 document.getElementById("tab_1").className = "shadow_tab_1";
                 document.getElementById("tab_2").className = "shadow_tab_1";
                 document.getElementById("tab_3").className = "shadow_tab_1";
                 document.getElementById("tab_4").className = "shadow_tab shadow_tab_1";
                 document.getElementById("tab_four").style.display = "inline-block";
                 document.getElementById("tab_two").style.display = "none";
                 document.getElementById("tab_one").style.display = "none";
                 document.getElementById("tab_three").style.display = "none";
             }
         }

        for (var K in post_single){
            if (K === "发文核稿"){
                var signature_Hegao = document.getElementById("signature_Hegao");
                for (var q=0; q<post_single[K].length-1; q++){
                    if (post_single[K][q]["status"]){
                        var div_total_HG = document.createElement("div");div_total_HG.style.marginTop="1%";
                        // 审批意见
                        if (post_single[K][q]["opinion"]) {
                            var opinion_HG = document.createElement("div");
                            opinion_HG.innerText = post_single[K][q]["opinion"];
                        }else {
                            opinion_HG = document.createElement("div");
                            opinion_HG.innerText = post_single[K][q]["status"];
                        }

                        var div_HG = document.createElement("div");
                        var div_signature_HG = document.createElement("div");div_signature_HG.style.display="inline-block";
                        // 签名图片
                        if (post_single[K][q]["signature_picture"]){
                            var img_HG = document.createElement("img");
                            img_HG.setAttribute("src", post_single[K][q]["signature_picture"]);img_HG.style.width="100px";img_HG.style.height="40px";
                        }else {
                            img_HG = document.createElement("div");img_HG.style.width="100px";img_HG.style.height="40px";
                            img_HG.innerText = post_single[K][q]["name"]
                        }
                        div_signature_HG.appendChild(img_HG)

                        var time_HG = document.createElement("div");time_HG.style.display="inline-block";time_HG.style.textAlign="right";time_HG.style.width="90%";time_HG.style.paddingRight="2%";
                        var div_HG_time = document.createElement("div");div_HG_time.innerText=post_single[K][q]["approveTime"];time_HG.appendChild(div_HG_time);

                        div_HG.appendChild(div_signature_HG);div_HG.appendChild(time_HG);
                        div_total_HG.appendChild(opinion_HG);div_total_HG.appendChild(div_HG);
                        signature_Hegao.appendChild(div_total_HG);
                        if (post_single[K].length > 2){
                            var hr_HG = document.createElement("hr");signature_Hegao.appendChild(hr_HG);
                        }
                    }
                }
            }else if (K === "分管领导"){
                var signature_Fenguan = document.getElementById("signature_Fenguan");
                for (var w=0; w<post_single[K].length-1; w++){
                    if (post_single[K][w]["status"]){
                        var div_total_FG = document.createElement("div");div_total_FG.style.marginTop="1%";
                        // 审批意见
                        if (post_single[K][w]["opinion"]) {
                            var opinion_FG = document.createElement("div");
                            opinion_FG.innerText = post_single[K][w]["opinion"];
                        }else {
                            opinion_FG = document.createElement("div");
                            opinion_FG.innerText = post_single[K][w]["status"];
                        }

                        var div_FG = document.createElement("div");
                        var div_signature_FG = document.createElement("div");div_signature_FG.style.display="inline-block";
                        // 签名图片
                        if (post_single[K][w]["signature_picture"]){
                            var img_FG = document.createElement("img");
                            img_FG.setAttribute("src", post_single[K][w]["signature_picture"]);img_FG.style.width="100px";img_FG.style.height="40px";
                        }else {
                            img_FG = document.createElement("div");img_FG.style.width="100px";img_FG.style.height="40px";
                            img_FG.innerText = post_single[K][w]["name"]
                        }
                        div_signature_FG.appendChild(img_FG)

                        var time_FG = document.createElement("div");time_FG.style.display="inline-block";time_FG.style.textAlign="right";time_FG.style.width="90%";time_FG.style.paddingRight="2%";
                        var div_FG_time = document.createElement("div");div_FG_time.innerText=post_single[K][w]["approveTime"];time_FG.appendChild(div_FG_time);

                        div_FG.appendChild(div_signature_FG);div_FG.appendChild(time_FG);
                        div_total_FG.appendChild(opinion_FG);div_total_FG.appendChild(div_FG);
                        signature_Fenguan.appendChild(div_total_FG);
                        if (post_single[K].length > 2){
                            var hr_FG = document.createElement("hr");signature_Fenguan.appendChild(hr_FG);
                        }
                    }
                }
            }else if (K === "发文会签"){
                var signature_Huiqian = document.getElementById("signature_Huiqian");
                if ( post_single[K][0]["name"]){
                    for (var e=0; e<post_single[K].length-1; e++){
                        if (post_single[K][e]["status"]){
                            var div_total_HQ = document.createElement("div");div_total_HQ.style.marginTop="1%";
                            // 审批意见
                            if (post_single[K][e]["opinion"]) {
                                var opinion_HQ = document.createElement("div");
                                opinion_HQ.innerText = post_single[K][e]["opinion"];
                            }else {
                                opinion_HQ= document.createElement("div");
                                opinion_HQ.innerText = post_single[K][e]["status"];
                            }

                            var div_HQ = document.createElement("div");
                            var div_signature_HQ = document.createElement("div");div_signature_HQ.style.display="inline-block";
                            // 签名图片
                            if (post_single[K][e]["signature_picture"] && post_single[K][e]["signature_picture"] !== "/media/"){
                                var img_HQ = document.createElement("img");
                                img_HQ.setAttribute("src", post_single[K][e]["signature_picture"]);img_HQ.style.width="100px";img_HQ.style.height="40px";
                            }else {
                                img_HQ = document.createElement("div");img_HQ.style.width="100px";img_HQ.style.height="40px";
                                img_HQ.innerText = post_single[K][e]["name"]
                            }
                            div_signature_HQ.appendChild(img_HQ)

                            var time_HQ = document.createElement("div");time_HQ.style.display="inline-block";time_HQ.style.textAlign="right";time_HQ.style.width="90%";time_HQ.style.paddingRight="2%";
                            var div_HQ_time = document.createElement("div");div_HQ_time.innerText=post_single[K][e]["approveTime"];time_HQ.appendChild(div_HQ_time);

                            div_HQ.appendChild(div_signature_HQ);div_HQ.appendChild(time_HQ);
                            div_total_HQ.appendChild(opinion_HQ);div_total_HQ.appendChild(div_HQ);
                            signature_Huiqian.appendChild(div_total_HQ);
                            if (post_single[K].length > 2){
                                var hr_HQ = document.createElement("hr");signature_Huiqian.appendChild(hr_HQ);
                            }
                        }
                    }
                }else {
                    document.getElementById("huiqian_arrows").style.display = "none";
                    document.getElementById("huiqian").style.display = "none";
                    document.getElementById("huiqian_tr").style.display = "none";
                    signature_Countersigned_id = "11111111";
                }
            }else if (K === "发文签发"){
                var signature_QF = document.getElementById("signature_Qianfa");
                for (var r=0; r<post_single[K].length-1; r++){
                    if (post_single[K][r]["status"]){
                        var div_total_QF = document.createElement("div");div_total_QF.style.marginTop="1%";
                        // 审批意见
                        if (post_single[K][r]["opinion"]) {
                            var opinion_QF = document.createElement("div");
                            opinion_QF.innerText = post_single[K][r]["opinion"];
                        }else {
                            opinion_QF= document.createElement("div");
                            opinion_QF.innerText = post_single[K][r]["status"];
                        }

                        var div_QF = document.createElement("div");
                        var div_signature_QF = document.createElement("div");div_signature_QF.style.display="inline-block";
                        // 签名图片
                        if (post_single[K][r]["signature_picture"] && post_single[K][r]["signature_picture"] !== "/media/"){
                            var img_QF = document.createElement("img");
                            img_QF.setAttribute("src", post_single[K][r]["signature_picture"]);img_QF.style.width="100px";img_QF.style.height="40px";
                        }else {
                            img_QF = document.createElement("div");img_QF.style.width="100px";img_QF.style.height="40px";
                            img_QF.innerText = post_single[K][r]["name"]
                        }
                        div_signature_QF.appendChild(img_QF)

                        var time_QF = document.createElement("div");time_QF.style.display="inline-block";time_QF.style.textAlign="right";time_QF.style.width="90%";time_QF.style.paddingRight="2%";
                        var div_QF_time = document.createElement("div");div_QF_time.innerText=post_single[K][r]["approveTime"];time_QF.appendChild(div_QF_time);

                        div_QF.appendChild(div_signature_QF);div_QF.appendChild(time_QF);
                        div_total_QF.appendChild(opinion_QF);div_total_QF.appendChild(div_QF);
                        signature_QF.appendChild(div_total_QF);
                        if (post_single[K].length > 2){
                            var hr_QF = document.createElement("hr");signature_QF.appendChild(hr_QF);
                        }
                    }
                }
            }
        }

        if(post_single_status==='2'){
            document.getElementById('submit_div').style.display = "inline-block";
        }

        function change_mind(ele_id) {
            if (ele_id === "accraditation_detail"){
                document.getElementById(ele_id).style.display = "inline-block";
                document.getElementById("Application_details").style.display = "none";
                document.getElementById(ele_id+"_tab").className = "tab_top top_tag";
                document.getElementById("Application_details_tab").className = "tab_top";
                document.getElementById("attention_details_tab").className = "tab_top";
                document.getElementById("attention_details").style.display = "none";
                document.getElementById("mind_file_tab").className = "tab_top";
                document.getElementById("mind_file").style.display = "none";
            }else if (ele_id === "Application_details"){
                document.getElementById("accraditation_detail").style.display = "none";
                document.getElementById(ele_id).style.display = "inline-block";
                document.getElementById(ele_id+"_tab").className = "tab_top top_tag";
                document.getElementById("accraditation_detail_tab").className = "tab_top";
                document.getElementById("attention_details_tab").className = "tab_top";
                document.getElementById("attention_details").style.display = "none";
                document.getElementById("mind_file_tab").className = "tab_top";
                document.getElementById("mind_file").style.display = "none";
            }else if (ele_id === "attention_details"){
                document.getElementById("accraditation_detail").style.display = "none";
                document.getElementById(ele_id).style.display = "inline-block";
                document.getElementById(ele_id+"_tab").className = "tab_top top_tag";
                document.getElementById("accraditation_detail_tab").className = "tab_top";
                document.getElementById("Application_details_tab").className = "tab_top";
                document.getElementById("Application_details").style.display = "none";
                document.getElementById("mind_file_tab").className = "tab_top";
                document.getElementById("mind_file").style.display = "none";
            }else {
                document.getElementById("accraditation_detail").style.display = "none";
                document.getElementById(ele_id).style.display = "inline-block";
                document.getElementById(ele_id+"_tab").className = "tab_top top_tag";
                document.getElementById("accraditation_detail_tab").className = "tab_top";
                document.getElementById("Application_details_tab").className = "tab_top";
                document.getElementById("Application_details").style.display = "none";
                document.getElementById("attention_details_tab").className = "tab_top";
                document.getElementById("attention_details").style.display = "none";
            }
        }

        function update_docment() {
            var form = new FormData();

            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/administrative/examine.html", true);
            xhr.send(form);
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        alert(JsonDate['message'])
                        if (JsonDate['code'] === 200){
                             {#window.location.href="/administrative/my_issue.html";#}
                        }

                    }
                }
            };
        }

        document.getElementById("BIAOTI").innerHTML = examine_dict["title"];
        document.getElementById("WENHAO").innerHTML = examine_dict["post_name"];
        document.getElementById("YINFEN").innerHTML = examine_dict["printed_copies"];
        document.getElementById("NIGAO").innerHTML = examine_dict["is_department"];
        document.getElementById("NIGAOREN").innerHTML = examine_dict["drafter"];
        document.getElementById("NIAN").setAttribute("placeholder", examine_dict["year"]);
        document.getElementById("YUE").setAttribute("placeholder", examine_dict["month"]);
        document.getElementById("RI").setAttribute("placeholder", examine_dict["day"]);
        if (examine_dict["types"] === "1"){
            document.getElementById("paper_title").innerText = "京 山 市 人 民 医 院 发 文 稿 纸";
            document.getElementById("manuscript_paper_1").style.display = "inline-block";
            document.getElementById("manuscript_paper_2").style.display = "none";
            document.getElementById("manuscript_paper_3").style.display = "none";
            document.getElementById("manuscript_paper_4").style.display = "none";
            document.getElementById("print").setAttribute("onclick", "but_click('manuscript_paper_1')")
            document.getElementById("is_department").innerHTML = examine_dict["is_department"];
            document.getElementById("drafter").innerHTML = examine_dict["drafter"];
            document.getElementById("cc_unit").innerHTML = examine_dict["cc_unit"];
            document.getElementById("post_number").innerHTML = examine_dict["post_name"];
            document.getElementById("printed_copies").innerHTML = examine_dict["printed_copies"];
            document.getElementById("title").innerHTML = examine_dict["title"];
            if (current_node === "发文核稿") {
                document.getElementById("FW-hegao").style.color = "#00d0ff";
            }else if (current_node === "分管领导") {
                document.getElementById("FG_leader").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                tianchong_data("signature_Reviewer")
            }else if (current_node === "发文会签") {
                document.getElementById("QF_countersign").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                tianchong_data("signature_Reviewer", "signature_of_leaders", "signature_Countersigned")
            }else if (current_node === "发文签发") {
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                document.getElementById("发文会签").style.display = "none";
                document.getElementById("FW_issue").style.color = "#00d0ff";
                tianchong_data("signature_Reviewer", "signature_of_leaders", "signature_Countersigned")
            }else {
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                tianchong_data("signature_Reviewer", "signature_of_leaders", "signature_Countersigned", "signature_issuer")
            }
        }else if (examine_dict["types"] === "2"){
            document.getElementById("paper_title").innerText = "京 山 市 人 民 医 文 稿 纸";
            document.getElementById("manuscript_paper_1").style.display = "none";
            document.getElementById("manuscript_paper_2").style.display = "inline-block";
            document.getElementById("manuscript_paper_3").style.display = "none";
            document.getElementById("manuscript_paper_4").style.display = "none";
            document.getElementById("print").setAttribute("onclick", "but_click('manuscript_paper_2')")
            document.getElementById("title_1").innerHTML = examine_dict["title"];
            document.getElementById("lord_send_unit_1").setAttribute("placeholder", examine_dict["lord_send_unit"]);
            document.getElementById("cc_unit_1").setAttribute("placeholder", examine_dict["cc_unit"]);
            document.getElementById("drafter_1").setAttribute("placeholder", examine_dict["drafter"]);
            document.getElementById("printed_copies_1").setAttribute("placeholder", examine_dict["printed_copies"]);
            document.getElementById("accessory_2").setAttribute("placeholder", examine_dict["accessory"]);
            document.getElementById("post_number_2").setAttribute("placeholder", examine_dict["post_name"]);
            document.getElementById("huiqian").style.display = "none";
            document.getElementById("huiqian_arrows").style.display = "none";
            if (current_node === "发文核稿") {
                document.getElementById("FW-hegao").style.color = "#00d0ff";
            }else if (current_node === "分管领导") {
                document.getElementById("FG_leader").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                if (approve){
                    document.getElementById("分管领导").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_2_3")
            }else if (current_node === "发文签发") {
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                document.getElementById("FW_issue").style.color = "#00d0ff";
                if (approve){
                    document.getElementById("发文签发").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_2_3", "signature_issuer_2_2")
            }else {
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                document.getElementById("发文签发").style.display = "none";
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                tianchong_data("signature_issuer_2_3", "signature_issuer_2_2", "11111111", "signature_issuer_2_1")
            }
        }else if (examine_dict["types"] === "3"){
            document.getElementById("paper_title").innerText = "中共京山市人民医院委员会文件拟稿纸";
            document.getElementById("manuscript_paper_1").style.display = "none";
            document.getElementById("manuscript_paper_2").style.display = "none";
            document.getElementById("manuscript_paper_3").style.display = "inline-block";
            document.getElementById("manuscript_paper_4").style.display = "none";
            document.getElementById("print").setAttribute("onclick", "but_click('manuscript_paper_3')");
            document.getElementById("wenhao_3").innerHTML = examine_dict["post_name"];
            document.getElementById("accuracy_class_1").innerHTML = examine_dict["accuracy_class"];
            document.getElementById("printed_copies_2").innerHTML = examine_dict["printed_copies"];
            document.getElementById("title_2").innerHTML = examine_dict["title"];
            document.getElementById("lord_send_unit_2").innerHTML = examine_dict["lord_send_unit"];
            document.getElementById("cc_unit_2").innerHTML = examine_dict["cc_unit"];
            document.getElementById("accessory_1").innerHTML = examine_dict["accessory"];
            document.getElementById("is_department_2").innerHTML = examine_dict["is_department"];
            document.getElementById("drafter_2").innerHTML = examine_dict["drafter"];
            document.getElementById("year-1").setAttribute("placeholder", examine_dict["year"]);
            document.getElementById("month-1").setAttribute("placeholder", examine_dict["month"]);
            document.getElementById("day-1").setAttribute("placeholder", examine_dict["day"]);
            if (current_node === "发文核稿") {
                document.getElementById("FW-hegao").style.color = "#00d0ff";
            }else if (current_node === "分管领导") {
                document.getElementById("FG_leader").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("year-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("分管领导").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_3_1")
            }else if (current_node === "发文会签") {
                document.getElementById("QF_countersign").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                document.getElementById("year-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("发文会签").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_3_1", "signature_issuer_3_2", "signature_issuer_3_3")
            }else if (current_node === "发文签发") {
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                document.getElementById("发文会签").style.display = "none";
                document.getElementById("FW_issue").style.color = "#00d0ff";
                document.getElementById("year-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("发文签发").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_3_1", "signature_issuer_3_2", "signature_issuer_3_3")
            }else {
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                document.getElementById("发文会签").style.display = "none";
                document.getElementById("发文签发").style.display = "none";
                document.getElementById("year-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-4").setAttribute("placeholder", post_single['发文签发'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4").setAttribute("placeholder", post_single['发文签发'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4").setAttribute("placeholder", post_single['发文签发'][0]["approveTime"].split("-")[2].split(" ")[0])
                tianchong_data("signature_issuer_3_1", "signature_issuer_3_2", signature_Countersigned_id, "signature_issuer_3_4")
            }
        }else {
            document.getElementById("paper_title").innerText = "华中科技大学协和京山医院文件拟稿纸";
            document.getElementById("manuscript_paper_1").style.display = "none";
            document.getElementById("manuscript_paper_2").style.display = "none";
            document.getElementById("manuscript_paper_3").style.display = "none";
            document.getElementById("manuscript_paper_4").style.display = "inline-block";
            document.getElementById("print").setAttribute("onclick", "but_click('manuscript_paper_4')")
            document.getElementById("wenhao-4").innerHTML = examine_dict["post_name"];
            document.getElementById("accuracy_class_4").innerHTML = examine_dict["accuracy_class"];
            document.getElementById("urgency_degree").innerHTML = examine_dict["urgency_degree"];
            document.getElementById("printed_copies_4").innerHTML = examine_dict["printed_copies"];
            document.getElementById("title_4").innerHTML = examine_dict["title"];
            document.getElementById("subject_term_id").innerHTML = examine_dict["subject_term"];
            document.getElementById("accessory_4").innerHTML = examine_dict["accessory"];
            document.getElementById("lord_send_unit_4").innerHTML = examine_dict["lord_send_unit"];
            document.getElementById("cc_unit_4").innerHTML = examine_dict["cc_unit"];
            document.getElementById("is_department_4").innerHTML = examine_dict["is_department"];
            document.getElementById("drafter_4").innerHTML = examine_dict["drafter"];
            document.getElementById("year-4-1").setAttribute("placeholder", examine_dict["year"]);
            document.getElementById("month-4-1").setAttribute("placeholder", examine_dict["month"]);
            document.getElementById("day-4-1").setAttribute("placeholder", examine_dict["day"]);

            if (current_node === "发文核稿") {
                document.getElementById("FW-hegao").style.color = "#00d0ff";
                if (approve){
                    document.getElementById("发文核稿").style.visibility = "visible";
                }
            }else if (current_node === "分管领导") {
                document.getElementById("FG_leader").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("year-4-2").setAttribute("placeholder", examine_dict["year"]);
                document.getElementById("month-4-2").setAttribute("placeholder", examine_dict["month"]);
                document.getElementById("day-4-2").setAttribute("placeholder", examine_dict["day"]);
                if (approve){
                    document.getElementById("分管领导").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_4_1")
            }else if (current_node === "发文会签") {
                document.getElementById("QF_countersign").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                document.getElementById("year-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("发文会签").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_4_1", "signature_issuer_4_2", "signature_issuer_4_3")
            }else if (current_node === "发文签发"){
                document.getElementById("FW_issue").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                document.getElementById("发文会签").style.display = "none";
                document.getElementById("year-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("发文签发").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_4_1", "signature_issuer_4_2", "signature_issuer_4_3")
            }else {
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                document.getElementById("发文核稿").style.display = "none";
                document.getElementById("分管领导").style.display = "none";
                document.getElementById("发文会签").style.display = "none";
                document.getElementById("发文签发").style.display = "none";
                document.getElementById("year-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("signature_issuer_4_4").style.display = "block";
                tianchong_data("signature_issuer_4_1", "signature_issuer_4_2", "signature_issuer_4_3", "signature_issuer_4_4")
            }
        }

        function click_ul() {
            if (document.getElementById("jiantou").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou").className = "iconfont icon-jiantou-xia";
                document.getElementById("organizational_management_ul").style.display = "inline-block";
            }else {
                document.getElementById("jiantou").className = "iconfont icon-jiantou-shang";
                document.getElementById("organizational_management_ul").style.display = "none";
            }
        }

        function click_ul1() {
            if (document.getElementById("jiantou1").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou1").className = "iconfont icon-jiantou-xia";
                document.getElementById("gebruikersrol_ul").style.display = "inline-block";
            }else {
                document.getElementById("jiantou1").className = "iconfont icon-jiantou-shang";
                document.getElementById("gebruikersrol_ul").style.display = "none";
            }
        }

        function click_ul2() {
            if (document.getElementById("jiantou2").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou2").className = "iconfont icon-jiantou-xia";
                document.getElementById("meeting_management_ul").style.display = "inline-block";
            }else {
                document.getElementById("jiantou2").className = "iconfont icon-jiantou-shang";
                document.getElementById("meeting_management_ul").style.display = "none";
            }
        }

        function click_ul_9() {
            if (document.getElementById("jiantou5").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou5").className = "iconfont icon-jiantou-xia";
                document.getElementById("dispatch-Administrator-1").style.display = "inline-block";
            }else {
                document.getElementById("jiantou5").className = "iconfont icon-jiantou-shang";
                document.getElementById("dispatch-Administrator-1").style.display = "none";
            }
        }

        function click_ul_10() {
            if (document.getElementById("jiantou4").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou4").className = "iconfont icon-jiantou-xia";
                document.getElementById("dispatch-Administrator").style.display = "inline-block";
            }else {
                document.getElementById("jiantou4").className = "iconfont icon-jiantou-shang";
                document.getElementById("dispatch-Administrator").style.display = "none";
            }
        }

        if (reception) {
            document.getElementById("todo-document").removeAttribute("class");
            document.getElementById("received-document").className = "add_class";
        }

        if (have) {
            document.getElementById("todo-document").removeAttribute("class");
            document.getElementById("have-office").className = "add_class";
            document.getElementById("发文会签").style.display = "none";
        }

        if (monitoring){
            document.getElementById("todo-document").removeAttribute("class");
            document.getElementById("dispatch-monitoring").className = "add_class";
            document.getElementById("发文会签").style.display = "none";
        }

        if (approve){
            document.getElementById("print").style.display = "none";
            document.getElementById("present").style.display = "inline-block";
            document.getElementById(current_node).style.visibility = "visible";
            if (current_node === "发文会签") {
                document.getElementById("nuclear_opinion").style.visibility = "visible";
            }
        }

        if (achieve) {
            document.getElementById("todo-document").removeAttribute("class");
            document.getElementById("have-office").className = "add_class";
        }

        if(draft){
            document.getElementById("todo-document").removeAttribute("class");
            document.getElementById("my_draft").className = "add_class";
        }

        function tianchong_data(signature_Reviewer_id="", signature_of_leaders_id="",　signature_Countersigned_id="", signature_issuer_id="") {
            // signature_Reviewer : 核稿签名图片标签ID
            // signature_of_leaders : 分管领导签名图片标签ID
            // signature_Countersigned : 会签签名图片标签ID
            // signature_issuer : 签发签名图片标签ID
            if (signature_Reviewer_id && !signature_of_leaders_id && !signature_Countersigned_id && !signature_issuer_id){
                var signature_Reviewer = document.getElementById(signature_Reviewer_id);
                for (var A=0; A<post_single['发文核稿'].length - 1; A++) {
                    if (post_single['发文核稿'][A]["status"] === "同意"){
                        var audit_picture = post_single['发文核稿'][A]["signature_picture"]
                        var img = document.createElement("img");
                        img.style.width = "100px";img.style.height = "40px";img.setAttribute("src", audit_picture);
                        signature_Reviewer.appendChild(img);
                    }
                }
            }

            if (signature_Reviewer_id && signature_of_leaders_id && !signature_Countersigned_id && !signature_issuer_id){
                var signature_Reviewer_1_1 = document.getElementById(signature_Reviewer_id);
                for (var C_1=0; C_1<post_single['发文核稿'].length - 1; C_1++) {
                    if (post_single['发文核稿'][C_1]["status"] === "同意"){
                        var audit_picture_1_1 = post_single['发文核稿'][C_1]["signature_picture"]
                        var img_1_1 = document.createElement("img");
                        img_1_1.style.width = "100px";img_1_1.style.height = "40px";img_1_1.setAttribute("src", audit_picture_1_1);
                        signature_Reviewer_1_1.appendChild(img_1_1);
                    }
                }

                var signature_of_leaders_1_2 = document.getElementById(signature_of_leaders_id);
                for (var D_2=0; D_2<post_single['分管领导'].length - 1; D_2++) {
                    if (post_single['分管领导'][D_2]["status"] === "同意") {
                        var audit_picture_1_2 = post_single['分管领导'][D_2]["signature_picture"]
                        var img_1_2 = document.createElement("img");
                        img_1_2.style.width = "100px";img_1_2.style.height = "40px";img_1_2.setAttribute("src", audit_picture_1_2);
                        signature_of_leaders_1_2.appendChild(img_1_2);
                    }
                }
            }

            if (signature_Reviewer_id && signature_of_leaders_id && signature_Countersigned_id && !signature_issuer_id){
                var signature_Reviewer3 = document.getElementById(signature_Reviewer_id);
                for (var C=0; C<post_single['发文核稿'].length - 1; C++) {
                    if (post_single['发文核稿'][C]["status"] === "同意"){
                        var audit_picture3 = post_single['发文核稿'][C]["signature_picture"]
                        var img3 = document.createElement("img");
                        img3.style.width = "100px";img3.style.height = "40px";img3.setAttribute("src", audit_picture3);
                        signature_Reviewer3.appendChild(img3);
                    }
                }

                var signature_of_leaders4 = document.getElementById(signature_of_leaders_id);
                for (var D=0; D<post_single['分管领导'].length - 1; D++) {
                    if (post_single['分管领导'][D]["status"] === "同意"){
                        var audit_picture4 = post_single['分管领导'][D]["signature_picture"]
                        var img4 = document.createElement("img");
                        img4.style.width = "100px";img4.style.height = "40px";img4.setAttribute("src", audit_picture4);
                        signature_of_leaders4.appendChild(img4);
                    }
                }

                var signature_Countersigned = document.getElementById(signature_Countersigned_id);

                for (var E=0; E<post_single['发文会签'].length - 1; E++) {
                    if (post_single['发文会签'][E]["status"]) {
                        if (post_single['发文会签'][E]["status"] === "同意") {
                            var audit_picture5 = post_single['发文会签'][E]["signature_picture"]
                            var img5 = document.createElement("img");
                            img5.style.width = "120px";img5.style.height = "40px";img5.setAttribute("src", audit_picture5);
                            signature_Countersigned.appendChild(img5);
                        }
                    }
                }
            }

            if (signature_Reviewer_id && signature_of_leaders_id && signature_Countersigned_id && signature_issuer_id){
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                var signature_Reviewer6 = document.getElementById(signature_Reviewer_id);
                for (var G=0; G<post_single['发文核稿'].length - 1; G++) {
                    if (post_single['发文核稿'][G]["status"] === "同意") {
                        var audit_picture6 = post_single['发文核稿'][G]["signature_picture"]
                        document.getElementById("发文核稿").style.display = "none";
                        var img6 = document.createElement("img");
                        img6.style.width = "100px";img6.style.height = "40px";img6.setAttribute("src", audit_picture6);
                        signature_Reviewer6.appendChild(img6);
                    }
                }

                var signature_of_leaders7 = document.getElementById(signature_of_leaders_id);
                for (var H=0; H<post_single['分管领导'].length - 1; H++) {
                    if (post_single['分管领导'][H]["status"] === "同意"){
                        var audit_picture7 = post_single['分管领导'][H]["signature_picture"]
                        document.getElementById("分管领导").style.display = "none";
                        var img7 = document.createElement("img");
                        img7.style.width = "100px";img7.style.height = "40px";img7.setAttribute("src", audit_picture7);
                        signature_of_leaders7.appendChild(img7);
                    }
                }

                if (signature_Countersigned_id !== "11111111"){
                    var signature_Countersigned8 = document.getElementById(signature_Countersigned_id);
                    for (var F=0; F<post_single['发文会签'].length - 1; F++) {
                        if (post_single['发文会签'][F]["status"] === "同意"){
                            var audit_picture8 = post_single['发文会签'][F]["signature_picture"]
                            document.getElementById("发文会签").style.display = "none";
                            var img8 = document.createElement("img");
                            img8.style.width = "100px";img8.style.height = "40px";img8.setAttribute("src", audit_picture8);
                            signature_Countersigned8.appendChild(img8);
                        }
                    }
                }

                var signature_issuer9 = document.getElementById(signature_issuer_id);
                for (var L=0; L<post_single['发文签发'].length - 1; L++) {
                    if (post_single['发文签发'][L]["status"] === "同意"){
                        var audit_picture9 = post_single['发文签发'][L]["signature_picture"]
                        document.getElementById("发文签发").style.display = "none";
                        var img9 = document.createElement("img");
                        img9.style.width = "100px";img9.style.height = "40px";img9.setAttribute("src", audit_picture9);
                        signature_issuer9.appendChild(img9);
                    }
                }
            }
        }

        // 提交转办
        function summit_val1() {
            document.getElementById("close-model3").click();
            var Administrative_person = document.getElementById("Administrative_person").value.trim();
            var document_id = window.location.href.split("id=")[1].replace("#", '');
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/administrative/approval_opinion", true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send("Administrative_person="+String(Administrative_person)+"&document_id="+String(document_id)+"&current_node="+String(current_node));
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        window.location = "/administrative/todo_document.html";
                    }
                }
            };
        }

        function but_click(ele_id) {
             bdhtml=document.getElementById(ele_id).innerHTML;
             sprnstr="<!--startprint-->";   //开始打印标识字符串有17个字符
             eprnstr="<!--endprint-->";        //结束打印标识字符串
             prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); //从开始打印标识之后的内容
             prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//截取开始标识和结束标识之间的内容
             var iframe = null;
             iframe = document.getElementById("iframe1");

             var htmlToPrint = '' +
            '<style type="text/css">' +
                'table {'+
                    'border-collapse:collapse;' +
                '}' +
            '</style>';
             htmlToPrint += prnhtml;
             var iwindow = null;
             var iwindow = iframe.contentWindow;//获取iframe的window对象
             iwindow.document.close();
             iwindow.document.write(htmlToPrint);
             iwindow.print(); //调用浏览器的打印功能打印指定区域
         }

        // 提交审批
        function accraditation() {
            document.getElementById("loading").style.display = "inline-block";
            var approver = "{{ realname | safe }}";                 // 审批人
            var Sign_on = "";                            // 会签意见
            if (current_node === "发文核稿"){
                var audit_result = $("input[type=radio][name=nuclear_draft]:checked").val();            // 审批结果
                var option = document.getElementById("HG_option").value;
            }else if (current_node === "分管领导"){
                audit_result = $("input[type=radio][name=the_leader]:checked").val();
                option = document.getElementById("FG_option").value;
            }else if (current_node === "发文会签"){
                audit_result = $("input[type=radio][name=countersign]:checked").val();
                option = document.getElementById("HQ_option").value;
            }else if (current_node === "发文签发"){
                audit_result = $("input[type=radio][name=Issued_by_post]:checked").val();
                option = document.getElementById("QF_option").value;
            }

            var document_id = window.location.href.split("id=")[1].replace("#", '');
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/administrative/state_document_approval", true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send("approver="+String(approver)+"&audit_result="+String(audit_result)+"&Sign_on="+String(option)+"&document_id="+String(document_id)+"&current_node="+String(current_node));
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        var JsonDate = JSON.parse(xhr.responseText);
                        window.location.href = "/administrative/have_office.html";
                        alert("审批成功！");
                        document.getElementById("loading").style.display = "none";
                    }
                }
            };
        }

        function click_ul3() {
            if (document.getElementById("jiantou3").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou3").className = "iconfont icon-jiantou-xia";
                document.getElementById("issue_approval_ul").style.display = "inline-block";
            }else {
                document.getElementById("jiantou3").className = "iconfont icon-jiantou-shang";
                document.getElementById("issue_approval_ul").style.display = "none";
            }
        }
    </script>
{% endblock %}
